import React from 'react'

interface Props{
    prefix?: string,
    name: string,
    color?: string,
    size?: string,
    style?: any
}

const Icon = ({
  prefix = 'iconfont',
  name,
  color = '#333333',
  size = '16px',
  style = {}

}:Props) => {
  return <i
    className={`${ prefix } ${ name }`}
    style={{
      ...style,
      color,
      fontSize: size
    }}
  />
}

export default Icon
